﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jzy.Workflow.Flow
{
    public partial class FlowInfo
    {
        public const string TABLE_NAME = "Flow";
        public const string INSERT_SQL = "insert into Flow ( [ID], [Name], [Remark], [TypeCode], [DriveMode], [FormTemplate], [State]) values ( @ID, @Name, @Remark, @TypeCode, @DriveMode, @FormTemplate, @State)";
        public const string UPDATE_SQL = "update Flow set  [ID] = @ID, [Name] = @Name, [Remark] = @Remark, [TypeCode] = @TypeCode, [DriveMode] = @DriveMode, [FormTemplate] = @FormTemplate, [State] = @State where ID = @ID";
        /// <summary>
        /// PK
        /// </summary>
        public Int32 ID
        {
            get;
            set;
        }
        /// <summary>
        /// 流程名称
        /// </summary>
        public String Name
        {
            get;
            set;
        }
        /// <summary>
        /// 描述
        /// </summary>
        public String Remark
        {
            get;
            set;
        }
        /// <summary>
        /// 工作流类型（来源字典）
        /// </summary>
        public Int32 TypeCode
        {
            get;
            set;
        }
        /// <summary>
        /// 驱动方式(表单式,自定义)
        /// </summary>
        public Int32 DriveMode
        {
            get;
            set;
        }
        /// <summary>
        /// 表单模板
        /// </summary>
        public String FormTemplate
        {
            get;
            set;
        }
        /// <summary>
        /// 已锁定，已开启
        /// </summary>
        public Int32 State
        {
            get;
            set;
        }
    }


}
